package com.hao.servlet;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

import com.hao.entity.product;
import com.hao.service.productservice;
import com.hao.serviceImpl.productserviceImpl;
/**
 * Created by Administrator on 2018/7/31.
 */
public class Servletdele extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html;charset=utf-8");
        request.setCharacterEncoding("utf-8");

        String enumber="";
        productservice aa=new productserviceImpl();
        List<product> list=aa.find(enumber);
        request.setAttribute("list", list);
        request.getRequestDispatcher("productdele.jsp").forward(request, response);
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doPost(request,response);
    }
}
